import { defineComponent,ref } from "vue";
export default defineComponent({
    name:'scu5',
    props:['msg'],
    setup(props){
        const message=ref(props.msg)
        const UpdataMessage=()=>{
            message.value='改变组合式API-自定义渲染-JSX'
        }
        return()=>(
            <div>
                <h1>{message.value}</h1>
                <button onClick={UpdataMessage}>Updata Message</button>
            </div>
        )
    }
})
